﻿

#region Using Statements

// System References
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading;

// XNA References
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

// Internal References
using Freeform.Framework.Graphics;

#endregion


namespace Freeform.Framework.Geometry
{
    /// <summary>
    /// A motion controller is used to control how an entity adjusts its spatial properties with time.
    /// </summary>
    public class MotionController
    {

        #region Members

        /// <summary>
        /// Gets the spatial properties that this motion controller adjusts.
        /// </summary>
        public virtual SpatialProperties SpatialProperties { get; private set; }

        #endregion


        #region Init

        /// <summary>
        /// Creates a new motion controller.
        /// </summary>
        /// <param name="spatialProperties">The spatial properties that this motion controller will control.</param>
        public MotionController(SpatialProperties spatialProperties)
        {
            SpatialProperties = spatialProperties;
            SpatialProperties.MotionController = this;
        }

        #endregion


        #region Update

        /// <summary>
        /// Allows the motion controller to update the entity's position and direction.
        /// </summary>
        /// <param name="entity">The entity to update.</param>
        /// <param name="time">Provides a snapshot of timing values.</param>
        public virtual void Update(GameTime time) { }

        #endregion

    }
}
